﻿using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;

namespace TheGame.Server
{
	[RunInstaller(true)]
	public class ServerInstaller : Installer
	{
		private readonly ServiceProcessInstaller _process;
		private readonly ServiceInstaller _service;

		public ServerInstaller()
		{
			_process = new ServiceProcessInstaller();
			_process.Account = ServiceAccount.LocalSystem;
			_service = new ServiceInstaller();
			_service.ServiceName = "TheGame World Server";
			Installers.Add(_process);
			Installers.Add(_service);
		}
	}
}